popover: Track toplevel focus changes
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 6 Mar 2014 13:50:35 +0000 (14:50 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 6 Mar 2014 22:23:47 +0000 (23:23 +0100)
commitdcba77fcc454229079049f41f4ddc23e5c27353f
treedc25e375387df99f0aadd83878247dd9b8517cd1
parent08e9c93b17d767e932df8d112cafd0fd1d96e282
popover: Track toplevel focus changes

Make the popover temporarily undo the GTK+ grab, so it remains modal
to its window, but does not attempt to steal focus on other non-modal
windows that get the focus.

This was most confusing with keyboard navigation, as the focus would
remain stuck on the popover, and not move to the newly focused window
after the popover was dismissed. It didn't have as much effect on
pointer operations as only the first click would be consumed in order
to hide the popover.
gtk/gtkpopover.c